package com.TT.common.REST;

/**
 * Created by 苏文广 on 2018/11/22
 */
public enum ResCode {
    /**
     * 响应枚举类
     */
    Simple_SUCESS(200,"success"),Simple_FAIL(500,"内部错误"),Msg_SUCCESS(200),Msg_FAIL(500);
    int code;
    String msg;

    ResCode(int code) {
        this.code = code;
    }

    ResCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResCode(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResCode() {
    }
}
